package com.fanfan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fanfan.pojo.Article;
import com.fanfan.pojo.domain.ResponseResult;
import com.fanfan.pojo.vo.AddArticleDto;
import com.fanfan.pojo.vo.ArticleListVo;

/**
 * (Article)表服务接口
 *
 * @author fansea
 * @since 2022-12-08 23:02:50
 */
public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult articleToList(Integer pageNum, Integer pageSize, ArticleListVo articleListVo);

    ResponseResult queryArticle(Long id);

    ResponseResult reviseArticle(AddArticleDto addArticleDto);
}

